package com.ruoyi.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户区域绑定对象 user_region_bindings
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
public class UserRegionBindings extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 绑定ID */
    @Excel(name = "绑定ID")
    private String bindingId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String customerId;

    /** 区域ID */
    @Excel(name = "区域ID")
    private String regionId;

    /** 是否主绑定 */
    @Excel(name = "是否主绑定")
    private Long isPrimary;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 绑定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date boundAt;

    /** 解绑时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "解绑时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date unboundAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String externField1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String externField2;

    public void setBindingId(String bindingId) 
    {
        this.bindingId = bindingId;
    }

    public String getBindingId() 
    {
        return bindingId;
    }

    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }

    public void setRegionId(String regionId) 
    {
        this.regionId = regionId;
    }

    public String getRegionId() 
    {
        return regionId;
    }

    public void setIsPrimary(Long isPrimary) 
    {
        this.isPrimary = isPrimary;
    }

    public Long getIsPrimary() 
    {
        return isPrimary;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setBoundAt(Date boundAt) 
    {
        this.boundAt = boundAt;
    }

    public Date getBoundAt() 
    {
        return boundAt;
    }

    public void setUnboundAt(Date unboundAt) 
    {
        this.unboundAt = unboundAt;
    }

    public Date getUnboundAt() 
    {
        return unboundAt;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setExternField1(String externField1) 
    {
        this.externField1 = externField1;
    }

    public String getExternField1() 
    {
        return externField1;
    }

    public void setExternField2(String externField2) 
    {
        this.externField2 = externField2;
    }

    public String getExternField2() 
    {
        return externField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bindingId", getBindingId())
            .append("customerId", getCustomerId())
            .append("regionId", getRegionId())
            .append("isPrimary", getIsPrimary())
            .append("status", getStatus())
            .append("boundAt", getBoundAt())
            .append("unboundAt", getUnboundAt())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("externField1", getExternField1())
            .append("externField2", getExternField2())
            .toString();
    }
}
